﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace news.admin.cyt369.com.services.Models
{
    /// <summary>
    /// 文章附件
    /// </summary>
    public class DocAttachment : BaseObject<long>
    {
        /// <summary>
        /// 文章ID
        /// </summary>
        public long DocID { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Sequence { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string FileExtension { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图片保存地址
        /// </summary>
        public string ImagePath { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ChangedTime { get; set; }

        [JsonIgnore]
        public Document Doc { get; set; }


    }

}
